import request from '@/utils/request'

export function findAllFaxianlistPage(page) {
  return request({
    url: '/findAllfaxianlistPage',
    method: 'post',
    data: {
      currentPage: page.currentPage,
      currentResult: 0,
      entityOrField: true,
      pageStr: 'string',
      pd: {
        fxmc: page.pd.fxmc,
        ssdd: page.pd.ssdd
      },
      showCount: page.showCount,
      totalPage: 0,
      totalResult: 0
    }
  })
}
/**发现标签字典**/
export function getFxbqsDict(page) {
  return request({
    url: '/getDictPgListPage',
    method: 'post',
    data: {
      currentPage: page.currentPage,
      currentResult: 0,
      entityOrField: true,
      pageStr: 'string',
      pd: {
        zdbh: 'D1001',
      },
      showCount: 9999,
      totalPage: 0,
      totalResult: 0
    }
  })
}

/**发现发现类型名称字典 自由行定制**/
export function getFxlxsDict(page) {
  return request({
    url: '/getDictPgListPage',
    method: 'post',
    data: {
      currentPage: page.currentPage,
      currentResult: 0,
      entityOrField: true,
      pageStr: 'string',
      pd: {
        zdbh: 'D1006',
      },
      showCount: 9999,
      totalPage: 0,
      totalResult: 0
    }
  })
}
/**发现类型 多日游**/
export function getFxlxDict(page) {
  return request({
    url: '/getDictPgListPage',
    method: 'post',
    data: {
      currentPage: page.currentPage,
      currentResult: 0,
      entityOrField: true,
      pageStr: 'string',
      pd: {
        zdbh: 'D1006',
      },
      showCount: 9999,
      totalPage: 0,
      totalResult: 0
    }
  })
}
export function addFaxian(params) {
  return request({
    url: '/addFaxian',
    method: 'post',
    data:params,
  })
}

export function updateFaxian(params) {
  return request({
    url: '/editFaxian',
    method: 'post',
    data:params,
  })
}
export function findFaxianById(params) {
  return request({
    url: '/findFaxianById',
    method: 'post',
    data:params,
  })
}

export function delFaxian(params) {
  return request({
    url: '/delFaxian',
    method: 'post',
    data:params,
  })
}



